package class1.s2022350143028;

import class1.s2022350143028.controller.HomeController;
import class1.s2022350143028.controller.LoginController;


public class Main {

    /** 进入登录界面 示例
     * LoginController login = new LoginController();
     * if(login.checkLogin()){
     *   HomeController home = new HomeController();
     *   home.SessionLogin = true; //记录登录状态
     *   home.main();
     * }
     */
    public static void main(String[] args) {
        //todo 系统入口
        LoginController login =new LoginController();
        if(login.Login()){//成功登录后
            HomeController home = new HomeController(); //展示主界面
            home.setSessionLogin(true);
            home.main();

        }
        else{//登录失败，重新登录
            login.login();
        }


    }
}